.aui-root {
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
}

.aui-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.15s;
}

.aui-button:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
  --tw-ring-color: hsl(var(--ring));
}

.aui-button:disabled {
  pointer-events: none;
  opacity: 0.5;
}

.aui-button-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  --tw-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.aui-button-primary:hover {
  background-color: hsl(var(--primary) / 0.9);
}

.aui-button-outline {
  border-width: 1px;
  border-color: hsl(var(--input));
  background-color: hsl(var(--background));
  --tw-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.aui-button-ghost:hover,
.aui-button-outline:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.aui-button-medium {
  height: 2.25rem;
  padding: 0.5rem 1rem;
}

.aui-button-icon {
  width: 1.5rem;
  height: 1.5rem;
  padding: 0.25rem;
}

.aui-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.aui-avatar-root {
  position: relative;
  display: flex;
  height: 2.5rem;
  width: 2.5rem;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 9999px;
}

.aui-avatar-image {
  aspect-ratio: 1/1;
  height: 100%;
  width: 100%;
}

.aui-avatar-fallback {
  display: flex;
  height: 100%;
  width: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: hsl(var(--muted));
}

.aui-tooltip-content {
  z-index: 50;
  overflow: hidden;
  border-radius: calc(var(--radius) - 2px);
  border-width: 1px;
  background-color: hsl(var(--popover));
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: hsl(var(--popover-foreground));
  --tw-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  animation-name: enter;
  animation-duration: 0.15s;
  --tw-enter-opacity: initial;
  --tw-enter-scale: initial;
  --tw-enter-rotate: initial;
  --tw-enter-translate-x: initial;
  --tw-enter-translate-y: initial;
  --tw-enter-opacity: 0;
  --tw-enter-scale: 0.95;
}

.aui-tooltip-content[data-state="closed"] {
  animation-name: exit;
  animation-duration: 0.15s;
  --tw-exit-opacity: initial;
  --tw-exit-scale: initial;
  --tw-exit-rotate: initial;
  --tw-exit-translate-x: initial;
  --tw-exit-translate-y: initial;
  --tw-exit-opacity: 0;
  --tw-exit-scale: 0.95;
}

.aui-tooltip-content[data-side="bottom"] {
  --tw-enter-translate-y: -0.5rem;
}

.aui-tooltip-content[data-side="left"] {
  --tw-enter-translate-x: 0.5rem;
}

.aui-tooltip-content[data-side="right"] {
  --tw-enter-translate-x: -0.5rem;
}

.aui-tooltip-content[data-side="top"] {
  --tw-enter-translate-y: 0.5rem;
}

.aui-thread-root {
  box-sizing: border-box;
  height: 100%;
  background-color: hsl(var(--background));
  display: flex;
  flex-flow: column nowrap;
  width: 100%;
}

.aui-thread-root > .aui-thread-viewport {
  background-color: inherit;
}

.aui-thread-viewport {
  /* height: 100%; */
  flex: 1;
  overflow-y: auto;
  scroll-behavior: smooth;
  background-color: hsl(var(--background));
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 1rem;
}

.aui-thread-viewport,
.aui-thread-viewport-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.aui-thread-viewport-header {
  position: sticky;
  top: 0;
  width: 100%;
  max-width: 42rem;
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  background-color: inherit;
  height: 3.5rem;
  border-bottom: 1px solid hsl(var(--border));
}
/* .aui-thread-viewport-header */
.aui-thread-viewport-footer {
  position: sticky;
  bottom: 0;
  margin-top: 1rem;
  width: 100%;
  max-width: 42rem;
  flex-grow: 1;
  justify-content: flex-end;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  background-color: inherit;
  padding-bottom: 1rem;
}

.aui-thread-scroll-to-bottom {
  position: absolute;
  top: -2rem;
  border-radius: 9999px;
}

.aui-thread-scroll-to-bottom:disabled {
  visibility: hidden;
}

.aui-thread-welcome-root {
  max-width: 42rem;
  flex-basis: 100%;
}

.aui-thread-welcome-center,
.aui-thread-welcome-root {
  display: flex;
  width: 100%;
  flex-grow: 1;
  flex-direction: column;
}

.aui-thread-welcome-center {
  align-items: center;
  justify-content: center;
}

.aui-thread-welcome-message {
  margin-top: 1rem;
  font-weight: 500;
}

.aui-thread-welcome-suggestion-container {
  margin-top: 1rem;
  display: flex;
  width: 100%;
  align-items: stretch;
  justify-content: center;
  gap: 1rem;
}

.aui-thread-welcome-suggestion {
  display: flex;
  max-width: 24rem;
  flex-grow: 1;
  flex-basis: 0px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border-width: 1px;
  padding: 0.75rem;
}

.aui-thread-welcome-suggestion-text {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-overflow: ellipsis;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
}

.aui-composer-root {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  align-items: flex-end;
  border-radius: var(--radius);
  border-width: 1px;
  padding-left: 0.625rem;
  padding-right: 0.625rem;
  --tw-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.15s;
  transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
  animation-timing-function: cubic-bezier(0.4, 0, 1, 1);
}

.aui-composer-root:focus-within {
  border-color: hsl(var(--ring) / 0.2);
}

.aui-composer-input {
  max-height: 10rem;
  flex-grow: 1;
  resize: none;
  border-style: none;
  background-color: transparent;
  padding: 1rem 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.aui-composer-input::-moz-placeholder {
  color: hsl(var(--muted-foreground));
}

.aui-composer-input::placeholder {
  color: hsl(var(--muted-foreground));
}

.aui-composer-input:focus {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.aui-composer-input:disabled {
  cursor: not-allowed;
}

.aui-composer-attach,
.aui-composer-cancel,
.aui-composer-send {
  margin-top: 0.625rem;
  margin-bottom: 0.625rem;
  width: 2rem;
  height: 2rem;
  padding: 0.5rem;
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.15s;
  transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
  animation-timing-function: cubic-bezier(0.4, 0, 1, 1);
}

.aui-composer-attachments {
  display: flex;
  width: 100%;
  flex-direction: row;
  gap: 0.75rem;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

.aui-composer-attachment-root {
  position: relative;
  margin-top: 1rem;
  display: flex;
  width: 5rem;
  height: 5rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background-color: hsl(var(--muted));
  padding: 0.5rem;
}

.aui-composer-attachment-remove {
  position: absolute;
  right: -0.75rem;
  top: -0.75rem;
  width: 1.75rem;
  height: 1.75rem;
}

.aui-user-message-root {
  display: grid;
  grid-auto-rows: auto;
  grid-template-columns: minmax(72px, 1fr) auto;
  row-gap: 0.5rem;
}

.aui-user-message-root > * {
  grid-column-start: 2;
}

.aui-user-message-root {
  width: 100%;
  max-width: 42rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

:where(.aui-user-message-root) > .aui-user-action-bar-root {
  grid-column-start: 1;
  grid-row-start: 2;
  margin-right: 0.75rem;
  margin-top: 0.625rem;
}

:where(.aui-user-message-root) > .aui-user-message-attachments {
  grid-column: 1/-1;
  grid-column-start: 1;
  grid-row-start: 1;
  justify-content: flex-end;
}

:where(.aui-user-message-root) > .aui-user-message-content {
  grid-column-start: 2;
  grid-row-start: 2;
}

:where(.aui-user-message-root) > .aui-branch-picker-root {
  grid-column: 1/-1;
  grid-column-start: 1;
  grid-row-start: 3;
  margin-right: -0.25rem;
  justify-content: flex-end;
}

.aui-user-message-content {
  max-width: 36rem;
  overflow-wrap: break-word;
  border-radius: 1.5rem;
  background-color: hsl(var(--muted));
  padding: 0.625rem 1.25rem;
  color: hsl(var(--foreground));
}

.aui-user-message-attachments {
  display: flex;
  width: 100%;
  flex-direction: row;
  gap: 0.75rem;
}

.aui-user-message-attachment-root {
  position: relative;
  display: flex;
  width: 5rem;
  height: 5rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background-color: hsl(var(--muted));
  padding: 0.5rem;
}

.aui-user-action-bar-root {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.aui-edit-composer-root {
  margin-top: 1rem;
  margin-bottom: 1rem;
  display: flex;
  width: 100%;
  max-width: 42rem;
  flex-direction: column;
  gap: 0.5rem;
  border-radius: 0.75rem;
  background-color: hsl(var(--muted));
}

.aui-edit-composer-input {
  display: flex;
  height: 2rem;
  width: 100%;
  resize: none;
  background-color: transparent;
  padding: 1rem 1rem 0;
  color: hsl(var(--foreground));
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.aui-edit-composer-footer {
  margin-left: 0.75rem;
  margin-right: 0.75rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  align-self: flex-end;
}

.aui-assistant-message-root {
  display: grid;
  grid-template-columns: auto auto 1fr;
  grid-template-rows: auto 1fr;
  position: relative;
  width: 100%;
  max-width: 42rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

:where(.aui-assistant-message-root) > .aui-avatar-root {
  grid-column-start: 1;
  grid-row: 1/-1;
  grid-row-start: 1;
  margin-right: 1rem;
}

:where(.aui-assistant-message-root) > .aui-branch-picker-root {
  grid-column-start: 2;
  grid-row-start: 2;
  margin-left: -0.5rem;
  margin-right: 0.5rem;
}

:where(.aui-assistant-message-root) > .aui-assistant-action-bar-root {
  grid-column-start: 3;
  grid-row-start: 2;
  margin-left: -0.25rem;
}

:where(.aui-assistant-message-root) > .aui-assistant-message-content {
  grid-column: span 2 / span 2;
  grid-column-start: 2;
  grid-row-start: 1;
  margin-top: 0.375rem;
  margin-bottom: 0.375rem;
}

.aui-assistant-message-content {
  max-width: 36rem;
  overflow-wrap: break-word;
  line-height: 1.75rem;
  color: hsl(var(--foreground));
}

.aui-assistant-action-bar-root {
  display: flex;
  gap: 0.25rem;
  color: hsl(var(--muted-foreground));
}

:where(.aui-assistant-action-bar-root)[data-floating] {
  position: absolute;
  border-radius: calc(var(--radius) - 2px);
  border-width: 1px;
  background-color: hsl(var(--background));
  padding: 0.25rem;
  --tw-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

:where(.aui-assistant-action-bar-feedback-positive)[data-submitted] {
  --tw-text-opacity: 1;
  color: rgb(22 163 74 / var(--tw-text-opacity));
}

:where(.aui-assistant-action-bar-feedback-positive)[data-submitted]:hover {
  --tw-text-opacity: 1;
  color: rgb(21 128 61 / var(--tw-text-opacity));
}

:where(.aui-assistant-action-bar-feedback-positive)[data-submitted]:is(.dark *) {
  --tw-text-opacity: 1;
  color: rgb(34 197 94 / var(--tw-text-opacity));
}

:where(.aui-assistant-action-bar-feedback-positive)[data-submitted]:hover:is(.dark *) {
  --tw-text-opacity: 1;
  color: rgb(74 222 128 / var(--tw-text-opacity));
}

:where(.aui-assistant-action-bar-feedback-negative)[data-submitted] {
  --tw-text-opacity: 1;
  color: rgb(220 38 38 / var(--tw-text-opacity));
}

:where(.aui-assistant-action-bar-feedback-negative)[data-submitted]:hover {
  --tw-text-opacity: 1;
  color: rgb(185 28 28 / var(--tw-text-opacity));
}

:where(.aui-assistant-action-bar-feedback-negative)[data-submitted]:is(.dark *) {
  --tw-text-opacity: 1;
  color: rgb(239 68 68 / var(--tw-text-opacity));
}

:where(.aui-assistant-action-bar-feedback-negative)[data-submitted]:hover:is(.dark *) {
  --tw-text-opacity: 1;
  color: rgb(248 113 113 / var(--tw-text-opacity));
}

.aui-branch-picker-root {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  line-height: 1rem;
  color: hsl(var(--muted-foreground));
}

.aui-branch-picker-state {
  font-weight: 500;
}

.aui-text {
  white-space: pre-line;
}

.aui-text-running:after {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  font-family: ui-sans-serif, system-ui, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
  --tw-content: "\25CF";
  content: var(--tw-content);
}

.aui-text-running:where([dir="ltr"], [dir="ltr"] *):after {
  margin-left: 0.25rem;
}

.aui-text-running:where([dir="rtl"], [dir="rtl"] *):after {
  margin-right: 0.25rem;
}

.aui-modal-content {
  z-index: 50;
  height: 500px;
  width: 400px;
  overflow: clip;
  border-radius: 0.75rem;
  border-width: 1px;
  background-color: hsl(var(--popover));
  padding: 0;
  color: hsl(var(--popover-foreground));
  --tw-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.aui-modal-content > .aui-thread-root {
  background-color: inherit;
}

.aui-modal-content[data-state="open"] {
  animation-name: enter;
  animation-duration: 0.15s;
  --tw-enter-opacity: initial;
  --tw-enter-scale: initial;
  --tw-enter-rotate: initial;
  --tw-enter-translate-x: initial;
  --tw-enter-translate-y: initial;
}

.aui-modal-content[data-state="closed"] {
  animation-name: exit;
  animation-duration: 0.15s;
  --tw-exit-opacity: initial;
  --tw-exit-scale: initial;
  --tw-exit-rotate: initial;
  --tw-exit-translate-x: initial;
  --tw-exit-translate-y: initial;
  --tw-exit-opacity: 0;
}

.aui-modal-content[data-state="open"] {
  --tw-enter-opacity: 0;
}

.aui-modal-content[data-state="closed"] {
  --tw-exit-scale: 0;
}

.aui-modal-content[data-state="open"] {
  --tw-enter-scale: 0;
  --tw-enter-translate-y: 50%;
  --tw-enter-translate-x: 50%;
}

.aui-modal-content[data-state="closed"] {
  --tw-exit-translate-y: 50%;
  --tw-exit-translate-x: 50%;
}

.aui-modal-anchor {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
}

.aui-modal-button {
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  --tw-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.15s;
}

.aui-modal-button:hover {
  --tw-scale-x: 1.1;
  --tw-scale-y: 1.1;
}

.aui-modal-button:active,
.aui-modal-button:hover {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.aui-modal-button:active {
  --tw-scale-x: 0.9;
  --tw-scale-y: 0.9;
}

.aui-modal-button-closed-icon {
  position: absolute;
  width: 1.5rem;
  height: 1.5rem;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.15s;
}

.aui-modal-button-closed-icon[data-state="closed"] {
  --tw-rotate: 0deg;
}

.aui-modal-button-closed-icon[data-state="open"] {
  --tw-rotate: 90deg;
}

.aui-modal-button-closed-icon[data-state="closed"] {
  --tw-scale-x: 1;
  --tw-scale-y: 1;
}

.aui-modal-button-closed-icon[data-state="closed"],
.aui-modal-button-closed-icon[data-state="open"] {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.aui-modal-button-closed-icon[data-state="open"] {
  --tw-scale-x: 0;
  --tw-scale-y: 0;
}

.aui-modal-button-open-icon {
  position: absolute;
  width: 1.5rem;
  height: 1.5rem;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.15s;
}

.aui-modal-button-open-icon[data-state="closed"] {
  --tw-rotate: -90deg;
}

.aui-modal-button-open-icon[data-state="open"] {
  --tw-rotate: 0deg;
}

.aui-modal-button-open-icon[data-state="closed"] {
  --tw-scale-x: 0;
  --tw-scale-y: 0;
}

.aui-modal-button-open-icon[data-state="closed"],
.aui-modal-button-open-icon[data-state="open"] {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.aui-modal-button-open-icon[data-state="open"] {
  --tw-scale-x: 1;
  --tw-scale-y: 1;
}

@keyframes pulse {
  50% {
    opacity: 0.5;
  }
}

:where(.aui-md-running):empty:after,
:where(.aui-md-running)
  > :where(:is(ol, ul):last-child)
  > :where(li:last-child)
  > :where(:is(ol, ul):last-child)
  > :where(li:last-child)
  > :where(:is(ol, ul):last-child)
  > :where(li:last-child):after,
:where(.aui-md-running) > :where(:is(ol, ul):last-child) > :where(li:last-child) > :where(:is(ol, ul):last-child) > :where(li:last-child:not(:has(* > li))):after,
:where(.aui-md-running) > :where(:is(ol, ul):last-child) > :where(li:last-child:not(:has(* > li))):after,
:where(.aui-md-running) > :where(:not(ol):not(ul):not(pre)):last-child:after,
:where(.aui-md-running) > pre:last-child code:after {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  font-family: ui-sans-serif, system-ui, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
  --tw-content: "\25CF";
  content: var(--tw-content);
}

:where(.aui-md-running):empty:where([dir="ltr"], [dir="ltr"] *):after,
:where(.aui-md-running)
  > :where(:is(ol, ul):last-child)
  > :where(li:last-child)
  > :where(:is(ol, ul):last-child)
  > :where(li:last-child)
  > :where(:is(ol, ul):last-child)
  > :where(li:last-child):where([dir="ltr"], [dir="ltr"] *):after,
:where(.aui-md-running) > :where(:is(ol, ul):last-child) > :where(li:last-child) > :where(:is(ol, ul):last-child) > :where(li:last-child:not(:has(* > li))):where([dir="ltr"], [dir="ltr"] *):after,
:where(.aui-md-running) > :where(:is(ol, ul):last-child) > :where(li:last-child:not(:has(* > li))):where([dir="ltr"], [dir="ltr"] *):after,
:where(.aui-md-running) > :where(:not(ol):not(ul):not(pre)):last-child:where([dir="ltr"], [dir="ltr"] *):after,
:where(.aui-md-running) > pre:last-child code:where([dir="ltr"], [dir="ltr"] *):after {
  margin-left: 0.25rem;
}

:where(.aui-md-running):empty:where([dir="rtl"], [dir="rtl"] *):after,
:where(.aui-md-running)
  > :where(:is(ol, ul):last-child)
  > :where(li:last-child)
  > :where(:is(ol, ul):last-child)
  > :where(li:last-child)
  > :where(:is(ol, ul):last-child)
  > :where(li:last-child):where([dir="rtl"], [dir="rtl"] *):after,
:where(.aui-md-running) > :where(:is(ol, ul):last-child) > :where(li:last-child) > :where(:is(ol, ul):last-child) > :where(li:last-child:not(:has(* > li))):where([dir="rtl"], [dir="rtl"] *):after,
:where(.aui-md-running) > :where(:is(ol, ul):last-child) > :where(li:last-child:not(:has(* > li))):where([dir="rtl"], [dir="rtl"] *):after,
:where(.aui-md-running) > :where(:not(ol):not(ul):not(pre)):last-child:where([dir="rtl"], [dir="rtl"] *):after,
:where(.aui-md-running) > pre:last-child code:where([dir="rtl"], [dir="rtl"] *):after {
  margin-right: 0.25rem;
}

.aui-md-root h1 {
  margin-bottom: 2rem;
  scroll-margin: 5rem;
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.aui-md-root h1:last-child {
  margin-bottom: 0;
}

.aui-md-root h2 {
  margin-bottom: 1rem;
  margin-top: 2rem;
  scroll-margin: 5rem;
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.aui-md-root h2:first-child {
  margin-top: 0;
}

.aui-md-root h2:last-child {
  margin-bottom: 0;
}

.aui-md-root h3 {
  margin-bottom: 1rem;
  margin-top: 1.5rem;
  scroll-margin: 5rem;
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.aui-md-root h3:first-child {
  margin-top: 0;
}

.aui-md-root h3:last-child {
  margin-bottom: 0;
}

.aui-md-root h4 {
  margin-bottom: 1rem;
  margin-top: 1.5rem;
  scroll-margin: 5rem;
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.aui-md-root h4:first-child {
  margin-top: 0;
}

.aui-md-root h4:last-child {
  margin-bottom: 0;
}

.aui-md-root h5 {
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 600;
}

.aui-md-root h5:first-child {
  margin-top: 0;
}

.aui-md-root h5:last-child {
  margin-bottom: 0;
}

.aui-md-root h6 {
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.aui-md-root h6:first-child {
  margin-top: 0;
}

.aui-md-root h6:last-child {
  margin-bottom: 0;
}

.aui-md-root p {
  margin-bottom: 1.25rem;
  margin-top: 1.25rem;
  line-height: 1.75rem;
}

.aui-md-root p:first-child {
  margin-top: 0;
}

.aui-md-root p:last-child {
  margin-bottom: 0;
}

.aui-md-root a {
  font-weight: 500;
  color: hsl(var(--primary));
  text-decoration-line: underline;
  text-underline-offset: 4px;
}

.aui-md-root blockquote {
  border-left-width: 2px;
  padding-left: 1.5rem;
  font-style: italic;
}

.aui-md-root ul {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  margin-left: 1.5rem;
  list-style-type: disc;
}

.aui-md-root ul > li {
  margin-top: 0.5rem;
}

.aui-md-root ol {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  margin-left: 1.5rem;
  list-style-type: decimal;
}

.aui-md-root ol > li {
  margin-top: 0.5rem;
}

.aui-md-root hr {
  border-bottom-width: 1px;
}

.aui-md-root hr,
.aui-md-root table {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}

.aui-md-root table {
  width: 100%;
  border-collapse: separate;
  --tw-border-spacing-x: 0px;
  --tw-border-spacing-y: 0px;
  border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y);
  overflow-y: auto;
}

.aui-md-root th {
  background-color: hsl(var(--muted));
  padding: 0.5rem 1rem;
  text-align: left;
  font-weight: 700;
}

.aui-md-root th:first-child {
  border-top-left-radius: var(--radius);
}

.aui-md-root th:last-child {
  border-top-right-radius: var(--radius);
}

.aui-md-root th[align="center"] {
  text-align: center;
}

.aui-md-root th[align="right"] {
  text-align: right;
}

.aui-md-root td {
  border-bottom-width: 1px;
  border-left-width: 1px;
  padding: 0.5rem 1rem;
  text-align: left;
}

.aui-md-root td:last-child {
  border-right-width: 1px;
}

.aui-md-root td[align="center"] {
  text-align: center;
}

.aui-md-root td[align="right"] {
  text-align: right;
}

.aui-md-root tr {
  margin: 0;
  border-bottom-width: 1px;
  padding: 0;
}

.aui-md-root tr:first-child {
  border-top-width: 1px;
}

.aui-md-root tr:last-child > td:first-child {
  border-bottom-left-radius: var(--radius);
}

.aui-md-root tr:last-child > td:last-child {
  border-bottom-right-radius: var(--radius);
}

.aui-md-root sup > a {
  font-size: 0.75rem;
  line-height: 1rem;
  text-decoration-line: none;
}

.aui-md-root pre {
  overflow-x: auto;
  border-bottom-right-radius: var(--radius);
  border-bottom-left-radius: var(--radius);
  --tw-bg-opacity: 1;
  background-color: rgb(0 0 0 / var(--tw-bg-opacity));
  padding: 1rem;
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity));
}

.aui-md-root :not(:where(pre)) code,
.aui-md-root > code {
  border-radius: 0.25rem;
  border-width: 1px;
  background-color: hsl(var(--muted));
  font-weight: 600;
}

.aui-code-header-root {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  --tw-bg-opacity: 1;
  background-color: rgb(24 24 27 / var(--tw-bg-opacity));
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity));
}

.aui-code-header-language {
  text-transform: lowercase;
}

.aui-code-header-language > span {
  font-size: 0.75rem;
  line-height: 1rem;
}
